package org.feifei.hrm.client;

import org.feifei.hrm.vo.UserContextInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author forever
 * @Description:
 * @date 2022/01/17 19:33
 */
@FeignClient(value = "SYSMANAGER-SERVICE",fallbackFactory = SysmanageServerClientFallbackFactory.class)
public interface SysmanageServerClient {
    @GetMapping("/employee/empAndTenant/{loginId}")
    UserContextInfo getEmpAndTenantByLoginId(@PathVariable("loginId")Long loginId);
}